public class Student {
    private String id;
    private String name;
    private double Englishscore;
    private double Mathscore;
    private double Computerscore;
    private double tatolscore;

    public Student(String id, String name, double Englishscore, double Mathscore, double Computerscore) {
        this.id = id;
        this.name = name;
        this.Englishscore = Englishscore;
        this.Mathscore = Mathscore;
        this.Computerscore = Computerscore;
        this.tatolscore = sum();
    }
    public double sum() {
        return Englishscore+Mathscore+Computerscore;
    }
    public double testscore(){
        return (double) tatolscore/3;
    }
    public String toString() {
        return "id: " + id + ", name: " + name + ", tatolcore: " + tatolscore;
    }
}
